package com.jvm;

import java.util.ArrayList;
import java.util.List;

/**
 * VM Args:-Xmx10m
 */
public class Demo2 {
	public static void main(String[] args) {
		List<String> list = new ArrayList<>();
		while (true) {
			list.add("OutOfMemoryError soon");
		}
	}
}
